// 用户信息
export interface UserInfo {
  userId: number
  username: string
  realName: string
}

// 登录参数
export interface LoginParams {
  username: string
  password: string
}

// 登录响应
export interface LoginResult {
  userId: number
  username: string
  realName: string
  token: string
  expireTime: number
}

// 分页参数
export interface PageParams {
  current: number
  size: number
  [key: string]: any
}

// 分页响应
export interface PageResult<T> {
  total: number
  pages: number
  current: number
  size: number
  records: T[]
}

// 用户查询参数
export interface UserQuery extends PageParams {
  username?: string
  realName?: string
  phone?: string
  email?: string
  status?: number
  deptId?: number
  createTime?: [string, string]
}

// 用户表单数据
export interface UserForm {
  id?: number
  username: string
  password?: string
  realName: string
  avatar?: string
  email: string
  phone: string
  status: number
  deptId: number
  roleIds: number[]
} 